import { InferAttributes } from 'sequelize'
import { Column, DataType, Model, PrimaryKey, Table } from 'sequelize-typescript'

@Table({ tableName: 'fj_store_member', underscored: true, timestamps: false })
export class Member extends Model<InferAttributes<Member>> {
    @PrimaryKey
    @Column(DataType.INTEGER)
    declare id: number

    @Column(DataType.STRING(20))
    declare uid: string

    @Column(DataType.STRING(255))
    declare nickname: string

    @Column(DataType.STRING(500))
    declare head_image: string
}
